*, *::before, *::after {
    box-sizing: border-box;
    apperance: none;
}

:focus {
    outline: none;
}
:focus-visible {
    outline: 2px solid green;
}

body {
    font-size: 16px;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: transparent;
    color: #fff;
    height: 100vh;
}

.container {
    display: flex;
    /* max-width: 600px; */
    width: 100%;
    height: 100%;
    /* margin: 50px auto; */
    margin: 0;
    border: 1px solid #444;
    border-radius: 5px;
    overflow: hidden;
    background-color: #333;
}

.menu-content {
    overflow: hidden;
    width: 0;
    transition: width 0.2s;
    background-color: #666;
    border-radius: 5px;
}

.menu-bar {
    display: flex;
}

.menu-title {
    flex: 1;
}

.menu-button {
    position: absolute;
    margin-top: 0;
    width: 40px;
    height: 40px;
    margin-left: -40px;
    z-index: 100;
    padding: 10px;
    border: none;
    background-color: transparent; /* Updated new button color */
    color: #666;
    border-radius: 5px;
    cursor: pointer;
}

.icon {
}

.icon {
    width: 100%;
    height: 100%;
    margin: auto;
    color: #666;
    opacity: 0.8;
    top: .125em;
    position: relative;
}

.inline .icon {
    width: 1em;
    height: 1em;
}

.thread-select {
    padding: 10px;
    margin: 0;
    width: 100%;
    height: 100%;
    border: none;
    background-color: #555;
    color: #888;
    overflow: hidden;
}

.thread-entry {
    cursor: pointer;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    text-align: left;
    display: block;
    padding: 10px;
    width: 100%;
    height: auto;
    border: none;
    margin-bottom: 8px;
    background-color: #444; /* Updated stop button color */
    color: #aaa;
    border-radius: 5px;
    cursor: pointer;
}

.thread-entry-current {
    background-color: #777;
    color: #fff;
}

.thread-entry-new {
    background-color: #5a8a5a;
    color: #fff;
}

.robot-select {
    overflow: hidden;
    height: 0;
    transition: height 0.2s;
    border-radius: 5px;
    margin: 8px;
    border: none;
    border-radius: 5px;
    background-color: #555;
    color: #888;
    overflow-y: scroll;
}

.robot-entry {
    display: inline;
    cursor: pointer;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    text-align: left;
    padding: 6px;
    height: auto;
    border: none;
    margin-top: 8px;
    margin-left: 8px;
    background-color: #444; /* Updated stop button color */
    color: #aaa;
    border-radius: 9px;
    cursor: pointer;
}

.robot-entry-current {
    background-color: #777;
    color: #fff;
}

.robot-entry-new {
    background-color: #5a8a5a;
    color: #fff;
}

.robot-entry-edit {
    background-color: #9a6a55;
    color: #fff;
}

.chat-container {
    flex-direction: column;
    display: flex;
    overflow: hidden;
    margin: 0;
    flex: 1;
}

.chat-box {
    flex: 1;
    padding: 20px;
    margin: 0;
    height: 100%;
    overflow: hidden;
    overflow-y: scroll;
}

.hidden {
    display: none;
}

.inline {
    display: inline;
}

.row {
    overflow: hidden;
}

.row#choices-list {
    padding: 5px;
}

.message p {
    margin: 0 auto;
}

.message {
    display: inline-block; /* or display: inline; */
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    position: relative;
    overflow: hidden; /* Ensure avatar doesn't overflow */
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    top: 50%;
    margin-right: 5px;
    transform: translateY(-50%);
}

.tool-call {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    margin-left: 10px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.tool-name {
    font-family: monospace;
    font-weight: bold;
    color: lightgrey;
}

.tool-arguments {
    font-family: monospace;
    font-weight: lighter;
    color: lightgrey;
}

.tool-result {
    font-family: monospace;
    font-weight: lighter;
    color: lightgrey;
}

.user {
    font-size: 16px;
    background-color: #3a6ea5; /* Updated user message color */
    color: #fff;
    text-align: left;
    max-width: 85%;
}

.assistant {
    background-color: #3f7f4e; /* Updated assistant message color */
    color: #fff;
    text-align: left;
    max-width: 85%;
}

.input-container {
    display: flex;
    padding: 10px;
    background-color: #444;
}

.input-container :disabled {
  cursor: not-allowed;
}

.message-input {
    flex: 1; /* Updated to take up all available space */
    padding: 10px;
    border: none;
    border-radius: 5px;
    margin-right: 10px;
    background-color: #555;
    color: #fff;
    line-height: 1.25em;
    min-height: 40px;
    height: 40px;
    max-height: 100%;
    resize: none;
    cursor: text;
}

.stop-button {
    padding: 10px;
    width: 40px;
    height: 40px;
    border: none;
    background-color: #a56e3a; /* Updated stop button color */
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
}

.send-button {
    padding: 10px;
    width: 40px;
    height: 40px;
    border: none;
    background-color: #3a6ea5; /* Updated send button color */
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
}

.choice-button {
    padding: 6px;
    margin: 0 2.5px;
    border: none;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    max-width: 30%;
    background-color: #3e424e;
    color: #aaa;
    border-radius: 9px;
    cursor: pointer;
}

.settings-button {
    width: auto;
    height: 1rem;
    padding: 0;
    margin: auto;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    background-color: transparent;
    justify-content: center;

}

/* .send-button:hover { */
/*     background-color: #2b5480; Updated send button hover color */
/* } */

/* Style the scrollbar */
.chat-box::-webkit-scrollbar {
    width: 10px;
}

.chat-box::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 5px;
}

.chat-box::-webkit-scrollbar-track {
    background-color: #333;
}

/* Style the scrollbar */
.thread-select::-webkit-scrollbar {
    width: 10px;
}

.thread-select::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 5px;
}

.thread-select::-webkit-scrollbar-track {
    background-color: #333;
}
